 if a != 13 and b != 13 and c != 13:
    return a+b+c
  else:
    if a == 13:
      return 0
    else:
      if b == 13:
        return a
      else:
        return a+b